package com.cray.intelligenthydrologyback.client.domain.entity;

import com.cray.intelligenthydrologyback.client.model.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 北斗设备上传的传感器数据配置对象 bd_device_sensor_data_relation
 */
@Data
public class BdDeviceSensorDataRelation extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    private Long id;

    /**
     * 北斗设备标识
     */
    private Long bdDeviceId;

    /**
     * 传感器标识
     */
    private Long sensorId;

    /**
     * 传感器点位标识
     */
    private Long sensorPointId;

    /**
     * 传感器类型（1：数据采集；2：告警阈值）
     */
    @ApiModelProperty(value = "传感器类型（1：数据采集；2：告警阈值）")
    private String sensorType;

    /**
     * 删除标志（N代表存在 Y代表删除）
     */
    private String delFlag;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("bdDeviceId", getBdDeviceId())
                .append("sensorId", getSensorId())
                .append("sensorPointId", getSensorPointId())
                .append("sensorType", getSensorType())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
